'''
Created on 05/10/2013

@author: daniel
'''
import unittest
import ej2Heap.heap

class Impresora(ej2Heap.heap.Heap):
    '''
    clase que hereda de Heap, gestiona la impresion de documentos 
    '''
    def nuevoDocumento(self,documento):
        self.agregar(documento)
    
    def imprime(self):
        if(self.esVacia()):return
        print self.eliminar().__str__()
        
class Test(unittest.TestCase):


    def testInit(self):
        self.assertIsInstance(Impresora(False), Impresora, "Verifica correcta creacion")


if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()